package com.pets.service;

import com.pets.entity.BountyList;
import com.baomidou.mybatisplus.extension.service.IService;
import com.pets.utils.Result;

/**
 * <p>
 * 悬赏表 服务类
 * </p>
 *
 * @author 啦啦啦
 * @since 2024-04-09
 */
public interface IBountyListService extends IService<BountyList> {

    /**
     * 发布悬赏
     */
    Result register(BountyList bountyList);

    /**
     * 修改悬赏
     */
    Result updateData(BountyList bountyList);

    /**
     * 删除悬赏
     */
    Result deleteById(Integer id, Integer userId);

    /**
     * 分页查询悬赏
     * @return
     */
    Result selectPage(Integer page, Integer pageSize, String bountyListName, Integer userId);

    /**
     * 完成悬赏
     */
    Result complete(Integer fileId);
}
